import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";
type Result = {
  current_page: number;
  result?: any;
  per_page?: number;
  total?: number;
  data?: any;
};
/** 企业订单统计 */
export const getOrderTotalDataApi = (params?: object) => {
  return http.request<Result>(
    "get",
    baseUrlApi + "/admin/statistics/order/getOrderTotalData",
    {
      params
    }
  );
};
/** 企业相关总数统计 */
export const getTotalDataApi = (params?: object) => {
  return http.request<Result>(
    "get",
    baseUrlApi + "/admin/statistics/corp/getTotalData",
    {
      params
    }
  );
};
